package com.school.graduation.model;

import java.io.Serializable;
import java.util.List;


public class Detailed implements Serializable {

    /**
     * title : 二手商品详情页
     * product : {"sellerName":"hello","seller":"59104abf36d1b11212ccf85c","img":"http://img2.imgtn.bdimg.com/it/u=3169595374,1700542976&fm=11&gp=0.jpg","name":"我的narsyoyoyo","detail":"1234567","price":1111,"catogary":"590f1532c28f2d6dbaa7ccda","_id":"59104c4782b32915633c537b","__v":0,"meta":{"updateAt":"2017-05-08T10:45:27.437Z","createAt":"2017-05-08T10:45:27.437Z"}}
     * comments : [{"__v":1,"_id":"59115f77ba897015f6b520f2","content":"没有金坷垃怎么种庄稼","from":{"name":"膜蛤小分队","_id":"590f1a9cc28f2d6dbaa7ccdf"},"product":"59104c4782b32915633c537b","meta":{"updateAt":"2017-05-09T06:22:06.720Z","createAt":"2017-05-09T06:19:35.335Z"},"reply":[{"from":{"name":"膜蛤小分队","_id":"590f1a9cc28f2d6dbaa7ccdf"},"to":{"name":"膜蛤小分队","_id":"590f1a9cc28f2d6dbaa7ccdf"},"content":"没有金坷垃怎么种庄稼","_id":"5911600eba897015f6b520f4"}]},{"product":"59104c4782b32915633c537b","from":{"name":"膜蛤小分队","_id":"590f1a9cc28f2d6dbaa7ccdf"},"content":"没有金坷垃怎么种庄稼","_id":"59116016ba897015f6b520f5","__v":0,"meta":{"updateAt":"2017-05-09T06:22:14.154Z","createAt":"2017-05-09T06:22:14.154Z"},"reply":[]}]
     */

    private String title;
    private ProductBean product;
    private List<CommentsBean> comments;

    /**
     * user : 5
     * status : has not signup
     */

    private int user;
    private String status = "";

    public int getUser() {
        return user;
    }

    public void setUser(int user) {
        this.user = user;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public List<CommentsBean> getComments() {
        return comments;
    }

    public void setComments(List<CommentsBean> comments) {
        this.comments = comments;
    }

    public static class ProductBean implements Serializable{
        /**
         * sellerName : hello
         * seller : 59104abf36d1b11212ccf85c
         * img : http://img2.imgtn.bdimg.com/it/u=3169595374,1700542976&fm=11&gp=0.jpg
         * name : 我的narsyoyoyo
         * detail : 1234567
         * price : 1111
         * catogary : 590f1532c28f2d6dbaa7ccda
         * _id : 59104c4782b32915633c537b
         * __v : 0
         * meta : {"updateAt":"2017-05-08T10:45:27.437Z","createAt":"2017-05-08T10:45:27.437Z"}
         */

        private String sellerName;
        private String seller;
        private String img;
        private String name;
        private String detail;
        private int price;
        private String catogary;
        private String _id;
        private int __v;
        private MetaBean meta;

        public String getSellerName() {
            return sellerName;
        }

        public void setSellerName(String sellerName) {
            this.sellerName = sellerName;
        }

        public String getSeller() {
            return seller;
        }

        public void setSeller(String seller) {
            this.seller = seller;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getDetail() {
            return detail;
        }

        public void setDetail(String detail) {
            this.detail = detail;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public String getCatogary() {
            return catogary;
        }

        public void setCatogary(String catogary) {
            this.catogary = catogary;
        }

        public String get_id() {
            return _id;
        }

        public void set_id(String _id) {
            this._id = _id;
        }

        public int get__v() {
            return __v;
        }

        public void set__v(int __v) {
            this.__v = __v;
        }

        public MetaBean getMeta() {
            return meta;
        }

        public void setMeta(MetaBean meta) {
            this.meta = meta;
        }

        public static class MetaBean implements Serializable{
            /**
             * updateAt : 2017-05-08T10:45:27.437Z
             * createAt : 2017-05-08T10:45:27.437Z
             */

            private String updateAt;
            private String createAt;

            public String getUpdateAt() {
                return updateAt;
            }

            public void setUpdateAt(String updateAt) {
                this.updateAt = updateAt;
            }

            public String getCreateAt() {
                return createAt;
            }

            public void setCreateAt(String createAt) {
                this.createAt = createAt;
            }
        }
    }

    public static class CommentsBean implements Serializable{
        /**
         * __v : 1
         * _id : 59115f77ba897015f6b520f2
         * content : 没有金坷垃怎么种庄稼
         * from : {"name":"膜蛤小分队","_id":"590f1a9cc28f2d6dbaa7ccdf"}
         * product : 59104c4782b32915633c537b
         * meta : {"updateAt":"2017-05-09T06:22:06.720Z","createAt":"2017-05-09T06:19:35.335Z"}
         * reply : [{"from":{"name":"膜蛤小分队","_id":"590f1a9cc28f2d6dbaa7ccdf"},"to":{"name":"膜蛤小分队","_id":"590f1a9cc28f2d6dbaa7ccdf"},"content":"没有金坷垃怎么种庄稼","_id":"5911600eba897015f6b520f4"}]
         */

        private int __v;
        private String _id;
        private String content;
        private FromBean from;
        private String product;
        private MetaBeanX meta;
        private List<ReplyBean> reply;

        public int get__v() {
            return __v;
        }

        public void set__v(int __v) {
            this.__v = __v;
        }

        public String get_id() {
            return _id;
        }

        public void set_id(String _id) {
            this._id = _id;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public FromBean getFrom() {
            return from;
        }

        public void setFrom(FromBean from) {
            this.from = from;
        }

        public String getProduct() {
            return product;
        }

        public void setProduct(String product) {
            this.product = product;
        }

        public MetaBeanX getMeta() {
            return meta;
        }

        public void setMeta(MetaBeanX meta) {
            this.meta = meta;
        }

        public List<ReplyBean> getReply() {
            return reply;
        }

        public void setReply(List<ReplyBean> reply) {
            this.reply = reply;
        }

        public static class FromBean implements Serializable{
            /**
             * name : 膜蛤小分队
             * _id : 590f1a9cc28f2d6dbaa7ccdf
             */

            private String name;
            private String _id;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String get_id() {
                return _id;
            }

            public void set_id(String _id) {
                this._id = _id;
            }
        }

        public static class MetaBeanX implements Serializable{
            /**
             * updateAt : 2017-05-09T06:22:06.720Z
             * createAt : 2017-05-09T06:19:35.335Z
             */

            private String updateAt;
            private String createAt;

            public String getUpdateAt() {
                return updateAt;
            }

            public void setUpdateAt(String updateAt) {
                this.updateAt = updateAt;
            }

            public String getCreateAt() {
                return createAt;
            }

            public void setCreateAt(String createAt) {
                this.createAt = createAt;
            }
        }

        public static class ReplyBean implements Serializable{
            /**
             * from : {"name":"膜蛤小分队","_id":"590f1a9cc28f2d6dbaa7ccdf"}
             * to : {"name":"膜蛤小分队","_id":"590f1a9cc28f2d6dbaa7ccdf"}
             * content : 没有金坷垃怎么种庄稼
             * _id : 5911600eba897015f6b520f4
             */

            private FromBeanX from;
            private ToBean to;
            private String content;
            private String _id;

            public FromBeanX getFrom() {
                return from;
            }

            public void setFrom(FromBeanX from) {
                this.from = from;
            }

            public ToBean getTo() {
                return to;
            }

            public void setTo(ToBean to) {
                this.to = to;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String get_id() {
                return _id;
            }

            public void set_id(String _id) {
                this._id = _id;
            }

            public static class FromBeanX implements Serializable{
                /**
                 * name : 膜蛤小分队
                 * _id : 590f1a9cc28f2d6dbaa7ccdf
                 */

                private String name;
                private String _id;

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String get_id() {
                    return _id;
                }

                public void set_id(String _id) {
                    this._id = _id;
                }
            }

            public static class ToBean implements Serializable{
                /**
                 * name : 膜蛤小分队
                 * _id : 590f1a9cc28f2d6dbaa7ccdf
                 */

                private String name;
                private String _id;

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String get_id() {
                    return _id;
                }

                public void set_id(String _id) {
                    this._id = _id;
                }
            }
        }
    }
}
